package com.res.simulator.view;

import java.util.LinkedHashMap;
import java.util.Map;

public class StoreFrontView {

	private Map<String, String> locationMap = null;
	
	private String selectedFileName = "";

	public StoreFrontView() {

		locationMap = new LinkedHashMap<String, String>();
	}
	
	public String getSelectedFileName() {
		return selectedFileName;
	}

	public void setSelectedFileName(final String selectedFileName) {
		this.selectedFileName = selectedFileName;
	}

	public Map<String, String> getLocationMap() {
		return locationMap;
	}

	public void appendLocation(final String name, final String location) {
		locationMap.put(name, location);

	}

	public void update(final StoreFrontView view) {

		final Map<String, String> oldLocation = view.getLocationMap();

		if (null != oldLocation)
			locationMap.putAll(oldLocation);
	}

	public void clear() {

		locationMap.clear();

	}

}
